import axios from '@/api/fetch';
import SERVER from '@/api/server';


// 获取表格数据
export const getModelList = params => axios.get(`${SERVER.CMSCLOUD_EPC}/graphic/graphicModel/query`, { params });
//获取车型列表
export const getCarModelArray = params => axios.get(`${SERVER.CMSCLOUD_EPC}/graphic/graphicModel/getList`,   { params });
//批量新增车型
export const addModel = params => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicModel/insert`, params );
//通过ID查
export const selectById = data => axios.get(`${SERVER.CMSCLOUD_EPC}/graphic/graphicModel/selectById`,{params : data});
//修改的保存
export const editSave = (id,params) => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicModel/updateById/${id}`,params );
//批量删除
export const piliangshanchu = ids => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicModel/batch/${ids}` );
// 批量导入
export const postImportCarModels = params => axios.post(`${SERVER.CMSCLOUD_EPC}/graphic/graphicModel/imports`, params)
